/**
 *  header file
 */
#include "C06.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define BUF_SIZE 64

int main(int argc, char* argv[])
{
    // insert "AAA" into middle of the string: "Hello AAA World!";
    char *sz1 = "Hello World!";

    // TODO: 1. find the pos to be inserted, after '\x20'
    int pos = find_pos(sz1, '\x20');
    
    char *szResult = malloc(BUF_SIZE); // big enough
    insert(szResult, BUF_SIZE, sz1, pos, " AAA");

    printf(szResult);

    free(szResult);

    return 0;
}